package cn.itsource.itsource.mapper;

import cn.itsource.itsource.query.DepartmentQuery;
import cn.itsource.itsource.domain.Department;

import java.util.List;

public interface DepartmentMapper {
    List<Department> findAll();

    void save(Department department);

    List<Department> findAll2();

//    void pageList(DepartmentQuery query);

    List<Department> findByQuery(DepartmentQuery query);

    Department findDeptById(Long id);

    List<Department> findDeptByParentId(Long parentId);

    void batchDel(List<Long> ids);

}
